<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::any('/', function () {
    return view('welcome');
});



Route::any('/payNotify/wechat', 'PayNotifyController@wechat')->name("payNotify.wechat");
Route::any('/payNotify/alipayApp', 'PayNotifyController@alipayApp')->name("payNotify.alipayApp");
Route::any('/payNotify/wechatApp', 'PayNotifyController@wechatApp')->name("payNotify.wechatApp");
Route::any('/jssdk', 'JssdkController@index');

Route::any('/url/go', 'JssdkController@go')->name('url.go');




Route::get('/report/add', 'ReportController@add')->name('report.add')->middleware('wechat.auth');
Route::post('/report/add', 'ReportController@store')->name('report.store')->middleware('wechat.auth');
Route::get('/report/url', 'ReportController@url')->name('report.url')->middleware('wechat.auth');
Route::get('/wechat/oauth/callback', 'WechatOauthController@callback')->name('wechat.oauth.callback');

